package day19;

public class Demo {
	public static void main(String[] args) {
		// 实现Runnable接口的方式启动一个线程
		MyRunnable myRunnable = new MyRunnable();
		Thread thread1 = new Thread(myRunnable,"MyRunnable1");
		Thread thread2 = new Thread(myRunnable,"MyRunnable2");
		Thread thread3 = new Thread(myRunnable,"MyRunnable3");
		thread1.start();
		thread2.start();
		thread3.start();
	}
}
